Home  |  About  | Last |  Submit  |  Contact
AllQuests.com




Previous Question:  PS3 with TVersity  PS3Next Question:  Gran Turismo 5 damage model at E3 TGS GameTrailers.com Forums  Gran Turismo
Question [ubuntu] Xrandr Use Problem ( Ubuntu Forums Absolute Beginner Talk )
Updated: 2008-08-12 05:58:49 (16)
[ubuntu] Xrandr Use Problem

Hi!
The display is not working properly on this ubuntu server. It is completely messed up, not just too big for the screen. Check the screenshot:



So on recommendation from friend, I try xrandr to right it with:
Code:
sudo xrandr -s 800x600
but I get the error message:
Code:
Can't open display
this happened before and after using:
Code:
sudo /etc/init.d/gdm stop
Does anyone have an idea? :S
Orb

Answers: [ubuntu] Xrandr Use Problem ( Ubuntu Forums Absolute Beginner Talk )
[ubuntu] Xrandr Use Problem

post results from xrandr -q

Canuckelhead

[ubuntu] Xrandr Use Problem

It seems like you're running this from somewhere other than X, yes? If so, the DISP 1f40 LAY variable will not be set, and you can't launch applications on your xserver.

1. Make sure X is running (with the buggy screen)
2. Go to a virtual terminal (Ctrl - Alt - F2)
3. Type:
Code:
DISPLAY=:0.0 sudo xrandr --mode 800x600
4. See if that fixes it by going back with Ctrl - Alt - F7

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by Canuckelhead
post results from xrandr -q
I get the same error message:
Code:
Can't open display
However, if I stop KDM:
Code:
sudo /etc/init.d/kdm stop
then ubuntu sort of shuts down, and I get a black blank screen with a flashing cursor but no response from commands..

hungryOrb

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
It seems like you're running this from somewhere other than X, yes? If so, the DISPLAY variable will not be set, and you can't launch applications on your xserver.

1. Make sure X is running (with the buggy screen)
2. Go to a virtual terminal (Ctrl - Alt - F2)
3. Type:
Code:
DISPLAY=:0.0 sudo xrandr --mode 800x600
4. See if that fixes it by going back with Ctrl - Alt - F7
Thanks, although doesn't seem to fix. Just gives a syntax list:


Not sure what this means :O

hungryOrb

[ubuntu] Xrandr Use Problem

oops, forgot to say that you need to specify an output
Code:
sudo DISPLAY=:0.0 xrandr --screen 0 -s 800x600
Try this instead. Usually when I use xrandr, I have two monitors and it seems a little different than I expected with just one.

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
oops, forgot to say that you need to specify an output
Code:
sudo DISPLAY=:0.0 xrandr --screen 0 -s 800x600
Try this instead. Usually when I use xrandr, I have two monitors and it seems a little different than I expected with just one.
Thanks again, although this gave the same result !
Arg!

hungryOrb

[ubuntu] Xrandr Use Problem

Grr, well, let's see if we can get SOME info here.
Code:
DISPLAY=:0.0 sudo xrandr -q
If this fails I am going to throw xrandr into the bitbucket.

Also, try stopping kdm then logging in as your user and running
Code:
startx `which xterm`
See if this starts X up with a terminal. If it does, then this is an issue with kdm.

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
Grr, well, let's see if we can get SOME info here.
Code:
DISPLAY=:0.0 sudo xrandr -q
If this fails I am going to throw xrandr into the bitbucket.

Also, try stopping kdm then logging in as your user and running
Code:
startx `which xterm`
See if this starts X up with a terminal. If it does, then this is an issue with kdm.
Thanks, err.. hehe.. noob q: I stopped KDM, but then all I have is a blank black screen with flashing cursor. i can type things but commands dont seem to have effect. If I press ctrl+alt+del then ubuntu restarts. Is that what I should do? Or I should login differently?

the first line you suggested did not work, same as before.

hungryOrb

[ubuntu] Xrandr Use Problem

When you get the flashing cursor, press ctrl-alt-F2
Then, you can type commands.

I'm still interested to see if that startx command works out for you. Note that the ` in it is the key next to the one, not the key next to :

...and just as proof that I'm not crazy, xrandr works for me on the terminals.

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
When you get the flashing cursor, press ctrl-alt-F2
Then, you can type commands.

I'm still interested to see if that startx command works out for you. Note that the ` in it is the key next to the one, not the key next to :

...and just as proof that I'm not crazy, xrandr works for me on the terminals.
aha! Thanks :] LOL, love the concept of sanity proof <3
The first one now gives error:
Code:
Can't open display0.0
the second, starts the display, a little differently than usual.. instead of it being blue, I can see just tones of grey and black and white!
I get screenshot in moment.

hungryOrb

[ubuntu] Xrandr Use Problem


hungryOrb

[ubuntu] Xrandr Use Problem

OK, it seems to be a problem in general with X.
Since you say it's a server, I assume you won't need hardware acceleration, so this may be an acceptable fix.

On the terminal (ctrl - alt - f2), type this
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Now, from here, you have two options:
1.
Code:
sudo rm /etc/X11/xorg.conf
Now, when you run kdm or startx, X will attempt to configure itself. This may or may not work well for you. For me, it configures itself well enough for compiz to run.

OR

2. You could instead try the "vesa" driver
Code:
sudo dpkg-reconfigure xserver-xorg
Mostly, default answers will be OK, but try the vesa driver when it asks you for a graphics driver. Alternatively, you could manually edit /etc/X11/xorg.conf, find the device for your graphics, and change the driver to vesa:
Code:
sudo nano /etc/X11/xorg.conf
Ctrl - o (oh), Enter, Ctrl -X when you are done.

I don't know if you've ever said what kind of graphics card it had. If it's anything other than integrated intel, I'm unfamiliar with any bugs (as that's what I myself have)

Sorry for the delayed response, gaming beckoned me.

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
OK, it seems to be a problem in general with X.
Since you say it's a server, I assume you won't need hardware acceleration, so this may be an acceptable fix.

On the terminal (ctrl - alt - f2), type this
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Now, from here, you have two options:
1.
Code:
sudo rm /etc/X11/xorg.conf
Now, when you run kdm or startx, X will attempt to configure itself. This may or may not work well for you. For me, it configures itself well enough for compiz to run.

OR

2. You could instead try the "vesa" driver
Code:
sudo dpkg-reconfigure xserver-xorg
Mostly, default answers will be OK, but try the vesa driver when it asks you for a graphics driver. Alternatively, you could manually edit /etc/X11/xorg.conf, find the device for your graphics, and change the driver to vesa:
Code:
sudo nano /etc/X11/xorg.conf
Ctrl - o (oh), Enter, Ctrl -X when you are done.

I don't know if you've ever said what kind of graphics card it had. If it's anything other than integrated intel, I'm unfamiliar with any bugs (as that's what I myself have)

Sorry for the delayed response, gaming beckoned me.
haha ;] I'm just glad you are willing to help Thanks!
Although.. I tried second option, and I didn't get the chance to choose a driver. I'll let you know how the first option goes ;p

hungryOrb

[ubuntu] Xrandr Use Problem

After deleting, I just get black screen, and the monitor goes on standby. I remember this is what happened at first, took a while to get a screen, but it did eventually get that screwed up screen.
But you know, it is capable of at least a low res.. Because standard install with gnome gui of debian will run desktop fine..

hungryOrb

[ubuntu] Xrandr Use Problem

Hmm, if it still doesn't work after setting the driver to vesa, I don't know what to tell you.

Anyone else?

jordanmthomas

[ubuntu] Xrandr Use Problem

Quote:
Originally Posted by jordanmthomas
Hmm, if it still doesn't work after setting the driver to vesa, I don't know what to tell you.

Anyone else?
Thanks very much for all the help man

hungryOrb

Previous Question:  PS3 with TVersity  AVForums  PS3Next Question:  Gran Turismo 5 damage model at E3 TGS GameTrailers.com Forums  GameTrailers.com Forums  Gran Turismo

- Source: [ubuntu] Xrandr Use Problem Ubuntu Forums Absolute Beginner Talk
- Previous Question: PS3 with TVersity AVForums PS3
- Next Question: Gran Turismo 5 damage model at E3 TGS GameTrailers.com Forums GameTrailers.com Forums Gran Turismo